package com.shangxian.giveithome.mapper;

import com.shangxian.giveithome.entity.ComplaintDO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ComplaintMapper {

    /**
     * 注册
     *
     * @param complaint
     * @return
     */
    @Insert("insert into `complaint`(us_id,img_id,content,create_time) values(#{usId}, #{imgId}, #{content}, #{createTime})")
    Long save(ComplaintDO complaint);

}
